<?php

use think\migration\Seeder;

class BasicEmissionStandards extends Seeder
{
    //依据《长治市工业企业按京津冀大气通道特别排放限值标准》而制作
    public function run()
    {
        $table = $this->table('basic_emission_standards');
        $rows  = [
            //电力
            [
                'industry_id'        => '1',
                'industry_name'      => '电力',
                'production_process' => '无',
                'emission_standards' => '{"smoke":5,"so2":35,"nox":50}',
            ],
            //钢铁1
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '烧结机头',
                'emission_standards' => '{"smoke":40,"so2":180,"nox":300}',
            ],
            //钢铁2
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '烧结机尾',
                'emission_standards' => '{"smoke":20}',
            ],
            //钢铁3
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '球团',
                'emission_standards' => '{"smoke":40,"so2":180,"nox":300}',
            ],
            //钢铁4
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '炼铁高炉热风炉',
                'emission_standards' => '{"smoke":15,"so2":100,"nox":300}',
            ],
            //钢铁5
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '炼铁矿槽',
                'emission_standards' => '{"smoke":10}',
            ],
            //钢铁6
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '出铁',
                'emission_standards' => '{"smoke":15}',
            ],
            //钢铁7
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '炼钢二次除尘',
                'emission_standards' => '{"smoke":15}',
            ],
            //钢铁8
            [
                'industry_id'        => '3',
                'industry_name'      => '钢铁',
                'production_process' => '轧钢加热炉',
                'emission_standards' => '{"smoke":15,"so2":150,"nox":300}',
            ],
            //焦化
            [
                'industry_id'        => '2',
                'industry_name'      => '焦化',
                'production_process' => '无',
                'emission_standards' => '{"smoke":15,"so2":30,"nox":150}',
            ],
            //水泥
            [
                'industry_id'        => '4',
                'industry_name'      => '水泥',
                'production_process' => '无',
                'emission_standards' => '{"smoke":30,"so2":200,"nox":400}',
            ],
            //玻璃
            [
                'industry_id'        => '4',
                'industry_name'      => '玻璃',
                'production_process' => '无',
                'emission_standards' => '{"smoke":20,"so2":100,"nox":500}',
            ],
        ];
        $table->insert($rows)->save();
    }
}